import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import userSign from './modules/userSign.ts'
import userInf from './modules/userInf.ts'

export default createStore({
  modules: {
    userSign,
    userInf
  },
  plugins: [
    createPersistedState({
      storage: window.localStorage,
      paths: ['userInf.userInfo']
    })
  ]
})
